package com.atguigu.springcloud.mockService;

/**
 * @author XiongJianLin
 * @date Created in 2025/2/10 14:32
 */
import com.atguigu.springcloud.大批量任务处理.config.ThreadPoolProperties;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import static org.assertj.core.api.Assertions.assertThat;

@SpringBootTest
public class Ymltest {

    @Autowired
    private ThreadPoolProperties threadPoolConfig;

    @Test
    public void testThreadPoolConfig() {
        assertThat(threadPoolConfig.getCorePoolSize()).isEqualTo(3);
        assertThat(threadPoolConfig.getMaxPoolSize()).isEqualTo(6);
        assertThat(threadPoolConfig.getKeepAliveSeconds()).isEqualTo(60);
        assertThat(threadPoolConfig.getQueueCapacity()).isEqualTo(66);
    }
}

